<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ page language="java" contentType="text/html" import="java.util.*"%>
<jsp:include page="/pages/login/checkLogin.jsp" />

<html>
<head>
<title>Blackspire</title>
<s:head theme="ajax" debug="true" />
</head>
<body>
Welcome to Blackspire
<br />
<b>Session Time: </b><%=new Date(session.getLastAccessedTime())%>
<br />

<table border="0" width="50%">
	<tr>
		<td width="100%"><s:tabbedPanel id="test">

	  <s:div id="one" label="Characters" theme="ajax" labelposition="top">

		<s:if test="characters.size > 0">
			<table>
				<s:iterator value="characters">
					<tr id="row_<s:property value="id"/>">
						<td>
							<s:property value="name" />
						</td>
						<td>
							<s:property value="realm" />
						</td>
					</tr>
				</s:iterator>
			</table>
		</s:if>
      </s:div>

	  <s:div id="two" label="Synchronise" theme="ajax">
		<s:form action="upload" validate="true">
			<s:textfield name="name" label="Character Name" value="Baloney" />
			<br>
			<s:textfield name="realm" label="Realm" value="Turalyon"/>
			<br>
			<s:submit value="Synchronise" align="center" />
		</s:form>
      </s:div>

			<s:div id="three" label="Tab 3" theme="ajax">
        This is the third panel.<br>
        Java Tutorial<br>
        PHP Tutorial<br>
        Linux Tutorial
      </s:div>

			<s:div id="four" label="Tab 4" theme="ajax">
        This is the forth panel.
      </s:div>

		</s:tabbedPanel></td>
	</tr>
</table>
<br />
<a href="<%= request.getContextPath() %>/login/logout.action">Logout</a>
<br />
</body>
</html>